def update_task_list(note,datetime,task1):
    import tkinter as tk
    note.delete(0, tk.END)
    data1 = datetime.now()
    for task, priority ,set_time1 in task1:
        color = "#8B0000" if priority == "最首要任务/High" else '#FFA500' if priority == "首要任务/Medium" else '#00008B'
        if set_time1 and data1 >=set_time1:
            color = "#333333"
        note.insert(tk.END, f"[{priority}] {task} - {set_time1.strftime('%Y-%m-%d %H:%M')}")
        note.itemconfig(note.size() - 1, {'fg': color})
        
